﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace MVC.OA.IBLL
{
    public interface IBaseBLL<T> where T : class,new()
    {
        IQueryable<T> GetEntities(Expression<Func<T, bool>> where);
        IQueryable<T> GetPageEntities<S>(int pageSize, int pageIndex, out int total,
                                                Expression<Func<T, bool>> whereLambda,
                                                  Expression<Func<T, S>> orderByLambda,
                                                   bool isAsc);


        bool Add(T Entity);

        bool Update(T Entity);

        bool Delete(T Entity);        
    }
}
